﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class m_Payment_Terms : DataObject
    {
        [Column]
        public string Code { get { return _Code; } set { _Code = value; EntityState.FieldChange("Code"); } }
        private string _Code;
        public static FieldInfo code = new FieldInfo("m_Payment_Terms", "Code");

        [Column]
        public string PaymentTerm { get { return _PaymentTerm; } set { _PaymentTerm = value; EntityState.FieldChange("PaymentTerm"); } }
        private string _PaymentTerm;
        public static FieldInfo paymentterm = new FieldInfo("m_Payment_Terms", "PaymentTerm");

        [Column]
        public string Days { get { return _Days; } set { _Days = value; EntityState.FieldChange("Days"); } }
        private string _Days;
        public static FieldInfo days = new FieldInfo("m_Payment_Terms", "Days");

        [Column]
        public string Types { get { return _Types; } set { _Types = value; EntityState.FieldChange("Types"); } }
        private string _Types;
        public static FieldInfo types = new FieldInfo("m_Payment_Terms", "Types");

        [Column]
        public string Description { get { return _Description; } set { _Description = value; EntityState.FieldChange("Description"); } }
        private string _Description;
        public static FieldInfo description = new FieldInfo("m_Payment_Terms", "Description");

        [Column]
        public string Baseline_Date { get { return _Baseline_Date; } set { _Baseline_Date = value; EntityState.FieldChange("Baseline_Date"); } }
        private string _Baseline_Date;
        public static FieldInfo baseline_date = new FieldInfo("m_Payment_Terms", "Baseline_Date");

        [Column]
        public string Explaination { get { return _Explaination; } set { _Explaination = value; EntityState.FieldChange("Explaination"); } }
        private string _Explaination;
        public static FieldInfo explaination = new FieldInfo("m_Payment_Terms", "Explaination");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("m_Payment_Terms", "Time");

        [Column]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("m_Payment_Terms", "Status");
    }
}
